package top.lt.lt_ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import top.lt.lt_ssm.bean.evaluate;
import top.lt.lt_ssm.bean.orders;
import top.lt.lt_ssm.dao.ordersDao;
import top.lt.lt_ssm.service.ordersService;

@Service
public class ordersServiceImp implements ordersService {
	@Resource
	private ordersDao ordersDao;

	@Override
	public List<orders> getAllOrders() {
		return ordersDao.getAllOrders();
	}


	@Override
	public List<evaluate> byid(int id) {
		return ordersDao.byid(id);
	}

	@Override
	public List<evaluate> Mhname(String un) {
		return ordersDao.Mhname(un);
	}

	@Override
	public List<evaluate> byzt(String zt) {
		return ordersDao.byzt(zt);
	}

	@Override
	public int delByid(int did) {
		return ordersDao.delByid(did);
	}
	@Override
	public orders getByid(int order_id) {
		return ordersDao.getByid(order_id);
	}


	@Override
	public int updByid(orders or) {
		int ub = ordersDao.updByid(or);
		return ub;
	}

}
